<?php
include"Router.class.php";
$router=Router::getInstance();
if($_SERVER['REQUEST_METHOD']=='GET') {
    if (isset($_GET['action'])&&$_GET['action']=='clear'){
        $router->init();
    } elseif(isset($_GET['action'])&&$_GET['action']=='input'){
        $router->input();
    }elseif(isset($_GET['action'])&&$_GET['action']=='user_clear'){
        $router->use_clear();
    }else{
        $router->index();
    }
}else{
    $router->input();
}
?>